<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/30
 * Time: 23:44
 */

class Order extends Admin_Controller
{

    public function __construct()
    {
        parent::__construct();
        $this->load->model('Orderlist_model','orderlist_model');
    }

    public function index()
    {
        $this->load->view('admin/order/list.html');
    }

//  获取订单列表
    public function getList(){
        $info = $this->orderlist_model->getList();
        if($info){
            show200_admin($info['data'],$info['count']);
        }else{
            show400_admin();
        }
    }

    public function add(){
        $this->load->view('admin/order/add.html');
    }
}